package bbs.annotation;

import bbs.entity.enums.UserOperFrequencyTypeEnum;

import java.lang.annotation.*;

@Target({ElementType.METHOD, ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface GlobalInterceptor {

    /**
     * 登录验证
     * @return
     */
    boolean checkLogin() default false;

    /**
     * 参数验证
     * @return
     */
    boolean checkParams() default false;

    UserOperFrequencyTypeEnum frequencyType() default UserOperFrequencyTypeEnum.NO_CHECK;
}
